-
Notifications
You must be signed in to change notification settings - Fork 213
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor(action-bar): use core tokens #2639
Conversation
Tachometer resultsChromeaccordion permalink
action-bar permalink
action-button permalink
action-group permalink
action-menu permalink
button-group permalink
button permalink
card permalink
checkbox permalink
dialog permalink
field-group permalink
field-label permalink
help-text permalink
icon permalink
menu permalink
meter permalink
number-field permalink
overlay permalink
picker-button permalink
picker permalink
popover permalink
progress-bar permalink
radio permalink
search permalink
slider permalink
split-button permalink
swatch permalink
switch permalink
table permalink
tabs permalink
tags permalink
textfield permalink
toast permalink
tooltip permalink
top-nav permalink
Firefoxaccordion permalink
action-bar permalink
action-button permalink
action-group permalink
action-menu permalink
button-group permalink
button permalink
card permalink
checkbox permalink
dialog permalink
field-group permalink
field-label permalink
help-text permalink
icon permalink
menu permalink
meter permalink
number-field permalink
overlay permalink
picker-button permalink
picker permalink
popover permalink
progress-bar permalink
radio permalink
search permalink
slider permalink
split-button permalink
swatch permalink
switch permalink
table permalink
tabs permalink
tags permalink
textfield permalink
toast permalink
tooltip permalink
top-nav permalink
|
Summary of Changes Impacting FailuresChanges effecting horizontal alignmentCheckbox has been replaced by CloseButton and Label. Since ActionBar now has three child elements instead of two, the layout is no longer controlled with justify-content:space-between. Instead, the last element, ActionGroup, is aligned to the end of ActionBar with margin-inline-start: auto. Changes effecting vertical alignmentSince new tokens provide exact spacing from the top of ActionBar to the components within, align-content: center is no longer used as it would conflict with this exact spacing. Changes effecting shadow appearanceExpress theme drop shadow filter has increased in vertical sizing from 1px to 4px and increased in blur from 4px to 16px. Failure Pattern 1: ExpectedMarkup updates are needed to replace Checkbox with CloseButton and Label and to update Popover to reflect the new flex layout styles. A visual illustrating the new child components follows: Failure Pattern 2: ExpectedThe failure which is noticeable on Express themes is a dramatic difference in drop shadow width and blur. Express drop shadow values have changed from 0 1 4 to 0 4 16, resulting in a much more pronounced shadow. |
The ActionBar changes have been merged in Spectrum CSS, and the release has been graduated. The full release is now: |
4a10720
to
9d26083
Compare
:host([emphasized]) .spectrum-ActionButton, | ||
:host([emphasized]) .spectrum-CloseButton-UIIcon, | ||
:host([emphasized]) ::slotted(sp-field-label) { | ||
fill: var( | ||
--mod-actionbar-emphasized-item-counter-color, | ||
var(--spectrum-actionbar-emphasized-item-counter-color) | ||
); | ||
color: var( | ||
--mod-actionbar-emphasized-item-counter-color, | ||
var(--spectrum-actionbar-emphasized-item-counter-color) | ||
); /* .spectrum-ActionBar--emphasized .spectrum-ActionButton, | ||
* .spectrum-ActionBar--emphasized .spectrum-FieldLabel, | ||
* .spectrum-ActionBar--emphasized .spectrum-CloseButton-UIIcon */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@pfulton and @lunarfusion this would otherwise make these buttons "static white", right?
Does this point at the benefit of asking the design team to include a "static white" Field Label?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@pfulton if this "static white"s the Buttons, should we look at having Action Group manage the variant
of child buttons the way you added support for managing size
that way?
packages/action-bar/src/ActionBar.ts
Outdated
@@ -71,6 +75,7 @@ export class ActionBar extends SpectrumElement { | |||
public override render(): TemplateResult { | |||
return html` | |||
<sp-popover ?open=${this.open} id="popover"> | |||
<sp-close-button class="close-button"></sp-close-button> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@pfulton it appears that the CSS implementation for this does not have an accessible label. Can we get clarify on what that should be "Close", "Deselect", etc.?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did we ever get content for this button, @pfulton?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Westbrook guidance from design and content strategy is to use the phrase "Clear selection". We'll make this change in the CSS docs in our next sprint to reflect this choice.
b4b8537
to
57cc46d
Compare
062a3c8
to
24f52cf
Compare
Description
Changes expected DOM structure from:
to
emphasized
deliveryRelated issue(s)
Motivation and context
Core token migration
How has this been tested?
Types of changes
Checklist